<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<base href="<%=basePath%>">

		<title>登录</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<link href="bs/css/bootstrap.min.css" rel="stylesheet" media="screen">
		<script type="text/javascript" src="bs/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>

		<script type="text/javascript">
		function login() {
			var form = document.forms[0];
			form.action = "<%=basePath%>base/login";
			form.method = "post";
			form.submit();
		}
		</script>

	</head>

	<body>
	
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span12">
					<form>
						<fieldset>
							 <legend>登录系统</legend> 
							 <label>用户</label><br>
							 <input type="text" name="loginname" value="111"/>  <br>
							 <label>密码</label><br>
							 <input type="password" name="password"/>    <br><br>
							 <button type="button" class="btn" onclick="javascript:login();">提交</button>
						</fieldset>
					</form>
				</div>
			</div>
		</div>

	
	</body>
</html>
